package org.vaadin.example.littleui;


import com.vaadin.flow.component.html.Div;

public class HR  {

    public static Div displayHr(){
        // 创建水平分隔线
        Div horizontalLine = new Div();
        horizontalLine.setHeight("1px");
        horizontalLine.setWidth("100%");
        horizontalLine.getStyle().set("background-color", "grey"); // 设置颜色
        return horizontalLine;
    }
}
